package com.yiyue.graduate.pojo;

import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

/**
 * @author yiyuexiaofusheng
 * @date 2021/5/7
 */
public class FileData implements Serializable {
    private static final long serialVersionUID=1L;

    private Long id;
    /**
     * 文件名称
     */
    private String fileName;
    /**
     * 文件后缀名
     */
    private String fileSuffix;
    /**
     * 文件存储路径
     */
    private String filePath;
    //    著作者(id)
    @TableField("course_id")
    private Course course;

    @Override
    public String toString() {
        return "FileData{" +
                "id=" + id +
                ", fileName='" + fileName + '\'' +
                ", fileSuffix='" + fileSuffix + '\'' +
                ", filePath='" + filePath + '\'' +
                '}';
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getFileSuffix() {
        return fileSuffix;
    }

    public void setFileSuffix(String fileSuffix) {
        this.fileSuffix = fileSuffix;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public FileData() {
    }

    public FileData(Long id, String fileName, String fileSuffix, String filePath) {
        this.id = id;
        this.fileName = fileName;
        this.fileSuffix = fileSuffix;
        this.filePath = filePath;
    }
}
